using Dapper.Contrib.Extensions;

namespace Read.Models
{
    /// <summary>
    /// 角色类
    /// </summary>
    [Table(Tables.Role)]
    public class RoleModel
    {
        /// <summary>
        /// 节点Id
        /// </summary>
        [Key]
        public int Id { get; set; }

        /// <summary>
        /// 上级Id
        /// </summary>
        public int Pid { get; set; }

        /// <summary>
        /// 角色名
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public int CreateTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public int UpdateTime { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }
    }
}